<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<link href="./images/reset.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<link href="./images/system.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />

<link href="./images/table_form.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<script src="{yun:}$config.sy_weburl{/yun}/js/jquery-1.8.0.min.js?v={yun:}$config.cachecode{/yun}"></script>
<link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<script src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}"></script>
<script src="{yun:}$config.sy_weburl{/yun}/js/layui/phpyun_layer.js?v={yun:}$config.cachecode{/yun}"></script>
<script src="js/admin_public.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
<title></title>
</head>
<script>
function check_form(){
	var order_price=$("#order_price").val();
	if(order_price==''){ 
		parent.layer.msg('待付金额不能为空！', 2, 8);
		return false;
	}
} 
function replace_type(){$('#invoice').toggle();}
function ordershow(){
	$.layer({
		type : 1,
		title :'汇款单图片', 
		closeBtn : [0 , true],
		border : [10 , 0.3 , '#000', true],
		area : ['350px','250px'],
		page : {dom :"#orderpic"}
	});
}
</script>
<body class="body_ifm">
<div class="infoboxp">
<div class="admin_new_tip">
<a href="javascript:;" class="admin_new_tip_close"></a>
<a href="javascript:;" class="admin_new_tip_open" style="display:none;"></a>
<div class="admin_new_tit"><i class="admin_new_tit_icon"></i>操作提示</div>
<div class="admin_new_tip_list_cont">
<div class="admin_new_tip_list">该页面展示了网站企业会员订单详情。</div>
</div>
</div>

<div class="infoboxp_top mt10">
    <h6>订单详情</h6>
        <a href="javascript:history.back();" class="admin_new_cz_tj">返回</a>
</div>
<div class="common-form">
	<iframe id="supportiframe" name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe>
	<form name="myform" target="supportiframe" action="index.php?m=admin_company&c=mordersave" method="post" id="myform" onSubmit="return check_form();">
    <input type="hidden" name="pytoken" id="pytoken" value="{yun:}$pytoken{/yun}">
		<table width="100%" class="table_form contentWrap table_form_bg"> 
			<tr>
				<td align="right"  width="230">订单号:</td>
				<td>{yun:}$row.order_id{/yun}</td>
			</tr>
			<tr class="admin_table_trbg">
				<td align="right">申请交易时间:</td>
				<td>{yun:}$row.order_time|date_format:"%Y-%m-%d %H:%M:%S"{/yun}</td>
			</tr>
			<tr>
				<td align="right">用户名:</td>
				<td>{yun:}if $row.type==3||$row.order_type=='bank'{/yun}{yun:}$row.comname{/yun}+{yun:}/if{/yun}{yun:}$row.username{/yun}</td>
			</tr>
			{yun:}if $coupon.id{/yun}
			<tr class="admin_table_trbg">
				<td align="right">订单金额:</td>
				<td>{yun:}$row.price{/yun}元
				</td>
			</tr> 
			<tr>
				<td align="right">优惠券金额:</td>
				<td>{yun:}$coupon.coupon_amount{/yun}元
				<input name='coupon_amount' value="{yun:}$coupon.coupon_amount{/yun}" type="hidden"/>
				</td>
			</tr>
			{yun:}/if{/yun}
			<tr class="admin_table_trbg">
				<td align="right">待付金额:</td>
				<td>
				{yun:}if $row.order_state==1||$row.order_state==3{/yun}
				<input type="text" name="order_price" id="order_price" class="input-text" size="10" value="{yun:}$row.order_price{/yun}" onkeyup="this.value=this.value.replace(/[^0-9.]/g,'')">{yun:}else{/yun}<input name='order_price' value='{yun:}$row.order_price{/yun}' type='hidden'/>{yun:}$row.order_price{/yun}{yun:}/if{/yun}元
				</td>
			</tr>
            {yun:}if $row.type==3||$row.order_type=='bank'{/yun} 
			<tr class="admin_table_trbg">
            	<td align="right">汇款银行:</td>
				<td>{yun:}$row.bankname{/yun}</td>
			</tr> 
			<tr class="admin_table_trbg">
                <td align="right">汇入账号:</td>
				<td>{yun:}$row.bankid{/yun}
				</td>
			</tr> 
			<tr class="admin_table_trbg">
                <td align="right">汇款金额:</td>
				<td>{yun:}$row.order_price{/yun}元
				</td>
			</tr> 
            {yun:}/if{/yun}
			<tr class="admin_table_trbg">
				<td align="right">备注:</td>
				<td>
			   {yun:}if $row.order_state==1||$row.order_state==3{/yun}<textarea name="order_remark" id="order_remark" rows="3" cols="50" class="text">{yun:}$row.order_remark{/yun}</textarea>{yun:}else{/yun}{yun:}$row.order_remark{/yun}<input name='order_remark' value='{yun:}$row.order_remark{/yun}' type='hidden'/>{yun:}/if{/yun}
				</td>
			</tr>
		<tr >
				<td align="right">订单类型:</td>
				<td> 
					{yun:}if $row.type==1{/yun}购买会员{yun:}elseif $row.type=='2'{/yun}{yun:}$config.integral_pricename{/yun}充值{yun:}elseif $row.type=='3'{/yun}银行转帐{yun:}elseif $row.type=='4'{/yun}金额充值{yun:}elseif $row.type=='5'{/yun}购买增值包{yun:}elseif $row.type=='6'{/yun}课程订购{yun:}elseif $row.type=='8'{/yun}分享职位赏金{yun:}elseif $row.type=='9'{/yun}悬赏职位赏金{yun:}elseif $row.type=='26'{/yun}购买广告位{yun:}/if{/yun}
				</td>
			</tr>
			{yun:}if $row.type=='2'{/yun}
			<tr class="admin_table_trbg">
				<td align="right">所得{yun:}$config.integral_pricename{/yun}:</td>
				<td>{yun:}$row.integral{/yun}</td>
			</tr>	
			{yun:}/if{/yun}
            {yun:}if $row.type=='3'||$row.order_type=='bank'{/yun}
			<tr class="admin_table_trbg">
				<td align="right">上传汇款单:</td>
				<td>{yun:}if $row.order_state==1||!$row.order_pic{/yun}
				未上传汇款单
				{yun:}else{/yun}<img src="{yun:}$config.sy_weburl{/yun}/{yun:}$row.order_pic{/yun}" width="160px" height="60px"><a href="javascript:void(0);" onClick="ordershow();">点击大图查看</a>{yun:}/if{/yun}</td>
			</tr>	
			{yun:}/if{/yun} 
		<tr>
			<td align="right">&nbsp;</td>
			<td > 
				<input name="id" type="hidden" value="{yun:}$row.id{/yun}">
				{yun:}if $row.order_state==1||$row.order_state==3{/yun}<input class="admin_button" name="hotup" type="submit" value="修改" id="dosubmit">{yun:}/if{/yun} 
				<input class="admin_button" name="" type="button" value="返回" onclick="javascript:history.go(-1);">
                {yun:}if $row.order_state==1||$row.order_state==3{/yun}<input class="admin_button" type="button" value="确认" onclick="layer_del('确认该订单将充值到用户帐户，是否确定？', 'index.php?m=admin_company&c=msetpay&id={yun:}$row.id{/yun}');">{yun:}/if{/yun}
			</td>
		</tr> 
		 </table>
	 </form>
</div>
</div>
<div id="orderpic" style="display:none;">
<img src="{yun:}$config.sy_weburl{/yun}/{yun:}$row.order_pic{/yun}" width="340px" height="200px">
</div>
</body>
</html>